/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package vigas.util;

import java.awt.Point;
import java.util.Comparator;

/**
 *
 * @author Lidiany
 */
public class ComparadorDePontos implements Comparator<Point>{

    public int compare(Point p1, Point p2) {
        return p1.x < p2.x ? -1 : (p1.x > p2.x ? +1 : 0);  
    }

}
